<div class="order-list-page" ng-if="pagedata.op == 'list'">
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">我的预约</div>
		<div ng-click="access_json('jy_newping/index/')" class="fui-header-right">前往预约 >></div>
	</div>
	<div class="fui-tab fui-tab-danger" style="top:2.5rem;margin-top:0">
			<a ng-class="{'external active':pagedata.type != 1}" ng-click="pagedata.type = 0;tool.get_list('jy_newping/yuyue/list/type=0',true)">我的预约</a>
			<a ng-class="{'external active':pagedata.type == 1}" ng-click="pagedata.type = 1;tool.get_list('jy_newping/yuyue/list/type=1',true)">我的参与</a>
	</div>
	<div class='fui-content order-list' style="margin-top:4.8rem">
	<div ng-if="pagedata.isendjiqi==1" class="tips tips-yellow">
			<i class="fa fa-bullhorn"></i> [<red>温馨提示</red>]：您的机器人助手已到期，无法自动预约！
	</div>
	<div ng-if="pagedata.member.jsjiqi!=1" class="tips tips-yellow">
			<i class="fa fa-bullhorn"></i> [<red>温馨提示</red>]：只有开启机器人助手，才能自动参与活动！
	</div>
	<div class="fui-list-group order-item" ng-repeat="item in pagedata.list">
                    <a href="" class="external">
                        <div class="fui-list goods-list">
                            <div class="fui-list-media" style="">
                                <img class="" ng-src="{{tomedia(item.goods.image) || '../core/resource/images/nopic.jpg'}}">
                            </div>
                            <div class="fui-list-inner" style="height:auto">
                                <div class="text goodstitle towline">{{item.goods.title || '拼团名称'}}</div>
								<div class="goods-tag red">
									<div style="font-size:0.65rem;line-height:1.4">{{item.goods.teamnum || 0}}人拼团，{{item.goods.lastnum || 0}}人拼中</div>
									<div style="font-size:0.65rem;line-height:1.4">{{item.goods.failnum || 0}}人奖励，{{item.goods.fan_price || '0.00'}}{{item.goods.fan_typetitle || '红包'}}补贴</div>
									<div ng-if="pagedata.member.jsjiqi==1" style="font-size:0.65rem;line-height:1.4">机器人自动预约<span ng-if="item.dayid">{{item.dayid}} - {{item.times}}</span></div>
									<div ng-if="pagedata.member.jsjiqi!=1" style="font-size:0.65rem;line-height:1.4">预约时间段：{{item.dayid}} - {{item.times}}</div>
								</div>
                            </div>
                            <div class="fui-list-angle bold">
                               <div>拼团价 ￥{{item.goods.price || '0.00'}}</div>
							   <div class="delete" style="font-size:0.7rem">原价 ￥{{item.goods.goodsprice || '0.00'}}</div>
							</div>
                        </div>
                    </a>
            <div ng-if="pagedata.member.jsjiqi==1" class="fui-list-group-title lineblock opblock">
				<span class="status noremark">
					<div class="btn btn-sm btn-default-o order-delete" href="javascript:" ng-click="post({},'del','id='+item.id)">取消参与</div>
				</span>
            </div>
        </div>
	</div>
	<div class="content-empty" ng-show="pagedata.list.length == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">您暂时没有预约！</p>
	</div>
</div>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<script type="text/javascript">
scope.tool.get_list('jy_newping/yuyue/list/',true);
scope.pagedata.scroll_bottom=function(){
		scope.tool.get_list('jy_newping/yuyue/list/type='+scope.pagedata.type);
}
</script>